home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 138
/
Volume 138 Aug 19 2011 - Damaged.iso
/
Games
/
tobby_on_ice.swf
/
scripts
/
DefineSprite_105_ice
/
frame_1
/
DoAction.as
Wrap
Text File
|
2011-08-19
|
993b
|
54 lines
function main()
{
if(_root.pauseFlg)
{
return undefined;
}
this.stream();
}
function stream()
{
var _loc1_ = this;
var _loc2_ = _root;
if(_loc2_.bgMC._x >= 0)
{
_loc1_.px += _loc1_.pdx + _loc2_.hoseidx;
}
else
{
_loc1_.px += _loc1_.pdx - _loc2_.scrolldx + _loc2_.hoseidx;
}
if(_loc1_.px < -150)
{
_loc1_.px = _loc1_.resetLocX - 150;
if(_loc1_.iceSize == 5)
{
if(_loc2_.stat == "main")
{
_loc2_.tobbyMC.setMissFromJelly();
}
}
}
}
function reset()
{
if(this.iceSize == 4)
{
this.objMC.bullJrMC.reset();
}
}
this.px = this._x;
this.py = this._y;
_root.scrolldx = 0;
if(_root.stageNum == 3)
{
_root.totalBonusCnt += this.iceSize;
nIDname = "ice" + String(this.iceSize) + "g";
this.goldMCList = [];
}
else
{
var nIDname = "ice" + String(this.iceSize);
}
this.attachMovie(nIDname,"objMC",0);